package com.fjwt.gz.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 积分兑换黑名单，无法参与
 * </p>
 *
 * @author wangjie
 * @since 2025-05-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_s_exchange_blacklist")
public class ExchangeBlacklistEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    public static LambdaQueryWrapper<ExchangeBlacklistEntity> gw() {
        return new LambdaQueryWrapper<>();
    }

    /**
     * 主键
     */
    @TableId(value = "exchange_blacklist_id", type = IdType.AUTO)
    private Long exchangeBlacklistId;

    /**
     * 积分兑换id
     */
    private Long scoreExchangeId;

    /**
     * 黑名单规则ID
     */
    private Long blacklistRuleId;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;


}
